<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" type="text/css" href="../static/layui/css/layui.css"/>
  <script src="../static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">企业人力资源管理系统</div>
    <ul class="layui-nav layui-layout-left">   </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img width="40px" height="30px" th:src="|/pic/@{${session.token?.image}}|"/>
          <span th:text="${session.token?.name}"></span>
        </a>
<!--        <dl class="layui-nav-child">-->
<!--          <dd>-->
<!--            <a href="javascript:openUser()">基本资料</a>-->
<!--          </dd>-->
<!--          <dd>-->
<!--            <a href="javascript:openPass()">修改密码</a>-->
<!--          </dd>-->
<!--          <dd>-->
<!--            <a href="javascript:openPic()">修改头像</a>-->
<!--          </dd>-->
<!--        </dl>-->
      </li>
      <li class="layui-nav-item">
        <a href="javascript:logout()">注销</a>
      </li>
    </ul>
  </div>
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" >
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:;">信息维护</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="javascript:;"
                 data-url="/employees/toEmployeesList"
                 class="site-demo-active">员工管理</a>
            </dd>
            <dd>
              <a href="javascript:;"
                 data-url="/salaries/toSalariesList"
                 class="site-demo-active">员工工资管理</a>
            </dd>
            <dd>
              <a href="javascript:;"
                 data-url="/attendance/toAttendanceList"
                 class="site-demo-active">员工考勤管理</a>
            </dd>
            <dd>
              <a href="javascript:;"
                 data-url="/echarts/toECharts1"
                 class="site-demo-active">统计图表</a>
            </dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">基础信息</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="javascript:;"
                 th:data-url='|/admin/toAdminUpdate?adminId=${session.token?.adminId}|'
                 class="site-demo-active">个人信息详情</a>
            </dd>
            <!--            <dd>-->
            <!--              <a href="javascript:;" class="site-demo-active"-->
            <!--                 data-url="/com.situ.web/404.jsp">404-1</a>-->
            <!--            </dd>-->
          </dl>
        </li>
      </ul>
    </div>
  </div>
  <div class="layui-body"><!-- 内容主体区域 -->
    <iframe name="rightframe" width="100%" height="100%" src="/echarts/toECharts1"></iframe>
  </div>
  <div class="layui-footer">2025 © 星海传说</div>
</div>
<script type="text/javascript">
  var $ = layui.jquery;
  var layer = layui.layer;
  var element = layui.element;
  $('.site-demo-active').click(function() {
    window.open($(this).data('url'), "rightframe");
  });
  element.render();// element.init();
  function openURL(url){
    window.open(url, "rightframe");
  }

  function logout() {
    layer.confirm(
            '您确认要退出么',
            {icon:3},
            function() {
              location.href = '/admin/logout'
            }
    );
  }

</script>
</body>
</html>